{#<li class="mll">#}
{% set lastDays = member.deadline|time_diff %}
{% if member.role == 'teacher' %}
	{% if course.expiryMode == 'forever' %}
		{{ 'course.expiry_date.forever_mode'|trans }}
	{% elseif course.expiryMode == 'days' %}
		{{ 'course.expiry_date.days_mode.total_days'|trans({'%expiryDays%':course.expiryDays}) }}
	{% else %}
		{{ course.expiryEndDate|date('Y-m-d') }}
	{% endif %}
{% else %}
	{% if course.expiryMode == 'forever' and member.deadline == 0 %}
		{% if vipDeadline|default(false) %}
      {% if app.request.locale == 'en' %}
        {{ member.deadline|date('M d, Y') }}
      {% else %}
        {{ member.deadline|date('Y-m-d') }}
      {% endif %}
      {% if lastDays == 0 %}
        <span class="color-warning text-12">{{ 'course.expiry_date.today_will_overdue'|trans }}</span>
      {% elseif lastDays == 1 %}
        <span class="color-warning text-12">{{ 'course.expiry_date.tomorrow_will_overdue'|trans }}</span>
      {% elseif lastDays < 31 %}
        <span class="color-warning text-12">{{ 'course.expiry_date.days_remaining'|trans({'%lastDays%':lastDays}) }}</span>
      {% endif %}
		{% else %}
			{{ 'course.expiry_date.forever_mode'|trans }}
		{% endif %}
	{% elseif course.expiryMode in ['end_date', 'date'] %}
		{% if app.request.locale == 'en' %}
			{{ member.deadline|date('M d, Y') }}
		{% else %}
			{{ member.deadline|date('Y-m-d') }}
		{% endif %}
		{% if date('now').timestamp > member.deadline %}
			<span class="color-danger text-12">{{ 'course.expiry_date.overdue'|trans }}</span>
		{% else %}
			{% if lastDays == 0 %}
				<span class="color-warning text-12">{{ 'course.expiry_date.today_will_overdue'|trans }}</span>
			{% elseif lastDays == 1 %}
				<span class="color-warning text-12">{{ 'course.expiry_date.tomorrow_will_overdue'|trans }}</span>
			{% elseif lastDays < 31 %}
				<span class="color-warning text-12">{{ 'course.expiry_date.days_remaining'|trans({'%lastDays%':lastDays}) }}</span>
			{% endif %}
		{% endif %}
	{% else %}
		{% if app.request.locale == 'en' %}
			{{ member.deadline|date('M d, Y') }}
		{% else %}
			{{ member.deadline|date('Y-m-d') }}
		{% endif %}
		{% if date('now').timestamp > member.deadline %}
			<span class="color-danger text-12">{{ 'course.expiry_date.overdue'|trans }}</span>
		{% else %}
			{% if lastDays == 0 %}
				<span class="color-warning text-12">{{ 'course.expiry_date.today_will_overdue'|trans }}</span>
			{% elseif lastDays == 1 %}
				<span class="color-warning text-12">{{ 'course.expiry_date.tomorrow_will_overdue'|trans }}</span>
			{% elseif lastDays < 31 %}
				<span class="color-warning text-12">{{ 'course.expiry_date.days_remaining'|trans({'%lastDays%':lastDays}) }}</span>
			{% endif %}
		{% endif %}
	{% endif %}
{% endif %}
{#</li>#}
